package cn.cttic.link.api.domain.bo;

import cn.cttic.link.api.domain.BaseThirdInterfaceConfig;
import cn.cttic.common.mybatis.core.domain.BaseEntity;
import cn.cttic.common.core.validate.AddGroup;
import cn.cttic.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 接口配置业务对象 base_third_interface_config
 *
 * @author Times.Studio
 * @date 2024-09-17
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BaseThirdInterfaceConfig.class, reverseConvertGenerate = false)
public class BaseThirdInterfaceConfigBo extends BaseEntity {

    /**
     * 标识
     */
    @NotBlank(message = "标识不能为空", groups = { EditGroup.class })
    private String id;

    /**
     * 接口类型
     */
    @NotBlank(message = "接口类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String interfaceType;

    /**
     * 接口地址
     */
    @NotBlank(message = "接口地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accessUrl;

    /**
     * APP ID
     */
    @NotBlank(message = "APP ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appId;

    /**
     * APP 密钥
     */
    @NotBlank(message = "APP 密钥不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appSecret;

    /**
     * APP 认证
     */
    @NotBlank(message = "APP 认证不能为空", groups = { AddGroup.class, EditGroup.class })
    private String accessToken;

    /**
     * APP 参数
     */
    @NotBlank(message = "APP 参数不能为空", groups = { AddGroup.class, EditGroup.class })
    private String acessParam;


}
